using System;
using System.ComponentModel.DataAnnotations;
using System.Data.Linq.Mapping;
using System.Xml.Linq;

namespace NDBGen.Mock.Foo
{
    [Table(Name = "foo.foo_other_bars")]
    public partial class FooOtherBar
    {
        [Required]
        [Column(Name = "id", DbType = "int not null", CanBeNull = false, AutoSync = AutoSync.OnInsert, IsDbGenerated = true, IsPrimaryKey = true)]
        public Int32 ID { get; set; }

        [Required]
        [Column(Name = "foo_type_id", DbType = "int not null", CanBeNull = false)]
        public FooType FooType { get; set; }

        [Required]
        [Column(Name = "blah_blah", DbType = "nvarchar(max) not null", CanBeNull = false, UpdateCheck = UpdateCheck.Never)]
        public String BlahBlah { get; set; }
    }
}
